home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / man / lib / c / Quad_Compare.man < prev    next >
Text File  |  1991-03-18  |  2KB  |  51 lines

  1. '\" Copyright 1991 Regents of the University of California
  2. '\" Permission to use, copy, modify, and distribute this
  3. '\" documentation for any purpose and without fee is hereby
  4. '\" granted, provided that this notice appears in all copies.
  5. '\" The University of California makes no representations about
  6. '\" the suitability of this material for any purpose.  It is
  7. '\" provided "as is" without express or implied warranty.
  8. '\" 
  9. '\" $Header: /sprite/src/lib/c/quad/RCS/Quad_Compare.man,v 1.1 91/03/18 12:19:43 kupfer Exp $ SPRITE (Berkeley)
  10. '/" 
  11. .so \*(]ltmac.sprite
  12. .HS Quad lib
  13. .BS
  14. '\" Note:  do not modify the .SH NAME line immediately below!
  15. .SH NAME
  16. Quad_CompareUns, Quad_EQ \- Comparison routines for 64-bit integers
  17. .SH SYNOPSIS
  18. .nf
  19. \fB#include <quad.h>\fR
  20. .sp
  21. int
  22. \fBQuad_CompareUns\fR(\fIuQuad1Ptr\fR, \fIuQuad2Ptr\fR)
  23. .sp
  24. Boolean
  25. \fBQuad_EQ\fR(\fIuQuad1\fR, \fIuQuad2\fR)
  26. .SH ARGUMENTS
  27. .AS u_quad *uQuad1Ptr
  28. .AP u_quad uQuadN in
  29. N'th unsigned quad argument.
  30. .AP u_quad *uQuadNPtr in
  31. Pointer to N'th unsigned quad argument.
  32. .BE
  33.  
  34. .SH DESCRIPTION
  35. .PP
  36. These routines compare two 64-bit integers.
  37. .B Quad_CompareUns
  38. compares two unsigned quads, returning \-1 if the first value is less
  39. than the second, 0 if they are equal, and +1 if the first value is
  40. greater than the second.  It was designed for use with
  41. .BR qsort .
  42. .PP
  43. .B Quad_EQ
  44. compares two quads or unsigned quads, returning TRUE if they are equal
  45. and FALSE if they are not.
  46. .B Quad_EQ
  47. is a macro, so beware of side effects.
  48.  
  49. .SH KEYWORDS
  50. quad, counter
  51.